package locations.actions;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import locations.model.Pacient;


public class NewPacientAction extends ActionSupport implements ModelDriven<Pacient>  {
	
		private static final long serialVersionUID = -8124967730231198191L;
		
		private Pacient pacient = new Pacient();
		private String pageTitle = "Editar Paciente";
    
    private static String[] staticProvincias = {
      "Actionscript (Flash)",
      "ABAP Objects",
      "Ada",
      "Aleph",
      "AppleScript",
      "Beta",
      "BlitzMax",
      "Boo",
      "C++",
      "XOTcl",
      "Zonnon" };

  private String[] provincias = NewPacientAction.staticProvincias;

		
  @Override
		public String execute(){
			
			return SUCCESS;
		}
		
		public Pacient getPacient() {
			return pacient;
		}

		public void setPacient(Pacient pacient) {
			this.pacient = pacient;
		}
		
		@Override
		public Pacient getModel() {
			return this.pacient;
		}
    
    
  public String[] getProvincias()
  {
    return provincias;
  }
}